<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			#cotainer
			{
				width: 100%;
				height: 800px;
				display: flex;
				justify-content: center;
			}
			#outDiv
			{
				width: 600px;
				height: 500px;
				overflow: hidden;
			}
			#imgList
			{
				width: 1600px;
				height: 500px;
				display: flex;
				align-items: center;
				justify-content: center;
			}
			#imgList img
			{
				width: 100px;
				height: 100px;
				border-top-style: solid;
				border-bottom-style: solid;
				border-color: red;
				border-width: 1px;
			}
		</style>
	</head>
	<body>
		<div id="cotainer">
			<div id="outDiv">
				<div id="imgList">
					<img src="img/1.jpeg" >
					<img src="img/2.jpeg" >
					<img src="img/3.jpeg" >
					<img src="img/4.jpeg" >
					<img src="img/5.jpeg" >
					<img src="img/6.jpeg" >
					<img src="img/7.jpeg" >
					<img src="img/8.jpeg" >
					<img src="img/9.jpeg" >
					<img src="img/10.jpeg" >
					<img src="img/1.jpeg" >
					<img src="img/2.jpeg" >
					<img src="img/3.jpeg" >
					<img src="img/4.jpeg" >
					<img src="img/5.jpeg" >
					<img src="img/6.jpeg" >
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		var imgListObj = document.getElementById('imgList');
		var marginLeft = 0;
		onload = function(){
			setInterval(function(){
				if(marginLeft==-1000){
					marginLeft=0;
				}
				marginLeft--;
				imgListObj.style.marginLeft = marginLeft+'px';
			},50)
		}
	</script>
</html>
